<?php
/**
 * Date: 2024.8
 * Author: kahn
 */
namespace models\vip;

use driver\ThinkOrm;

class SaleModel extends ThinkOrm
{
    protected $table = 'vip_sale';
    protected $pk = 'id';

    public static function list(){
        return static::where('status',1)
            ->whereBetweenTimeField('startTime', 'endTime')
            ->field('id, title, discount, type, goodsId, endTime')
            ->select()
            ->toArray();
    }
}